package it.uniroma3.dia.praised.core.exception;

import java.sql.SQLException;

public class PersistenceException extends Exception {

		public static final long serialVersionUID = 3L;

		private SQLException sqle;
		
		public PersistenceException() {
	        super();
	    }
	    
	    public PersistenceException(String s){
	        super(s);
	    }
	    
//	    public PersistenceException(Exception e){
//	        super(e);
//	    }
	    
	    public PersistenceException(SQLException sqle) {
	    	super();
	    	this.sqle = sqle;
	    }

		/**
		 * @return the sqle
		 */
		public SQLException getSqle() {
			return sqle;
		}

		/**
		 * @param sqle the sqle to set
		 */
		public void setSqle(SQLException sqle) {
			this.sqle = sqle;
		}

		/**
		 * @return the serialVersionUID
		 */
		public static long getSerialVersionUID() {
			return serialVersionUID;
		}
}